home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 14 / MacFormat n. 14 (Spain) / MacFormat 14.bin / Shareware Internet / Sonido / CopyBeep / CopyBeep 1.1 README next >
Encoding:
Text File  |  1992-08-16  |  1.5 KB  |  16 lines

  1. CopyBeep 1.1
  2. ©1992 Gregory M. Robbins
  3. Free distribution permitted when accompanied by this document.
  4.  
  5. CopyBeep is an endearing little INIT which plays a sound after a Finder copy or other Finder operation which takes longer than 15 seconds.
  6.  
  7. CopyBeep works by patching the toolbox routines ShowWindow and CloseWindow. When the Finder shows a window like the Copy progress dialog, CopyBeep begins counting. If the window closes more than 15 seconds later, CopyBeep plays the sound.
  8.  
  9. Those unafraid of ResEdit and hexadecimal numbers can change sound or the minimum copy time before a beep. The first 'snd ' resource (that is, the one with the lowest resource ID number) will be played. If no 'snd ' is in the CopyBeep file, CopyBeep will use the system alert sound instead. 
  10.  
  11. You can change the minimum copy time by editing the DLAY resource. By default, the minimum delay is 15 seconds (000F hex.)
  12.  
  13. In the spirit of sharing, I have included the Pascal source code to CopyBeep. It is not tricky, but unless you completely understand the perils of patching traps and the steps necessary to safely generate a fake exit to a procedure, I suggest that you not use this as sample code. Novice patch authors should stick to assembly language (which is what the pros do anyway.) Information on writing INITs is in the DTS tech note “Stand-alone code, ad nauseum”.
  14.  
  15.  
  16. Comments are welcome. I can be reached at 109 Crocker Ave, Oakland, California 94610 USA, or on the Internet as grobbins@nails.gsfc.nasa.gov.